﻿-- ================================================
-- Remarks: 
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'Dasideen_ContentTypeMaster_GetByContentTypeKey')
	BEGIN
		DROP  Procedure  Dasideen_ContentTypeMaster_GetByContentTypeKey
	END

GO

CREATE PROCEDURE [Dasideen_ContentTypeMaster_GetByContentTypeKey] 
-- =============================================
-- Author:		<Ram pravesh kumar>
-- Create date: <22/01/2015>
-- Description:	<Dasideen_ContentTypeMaster_GetByContentTypeKey>
-- =============================================
-- Add the parameters for the stored procedure here
	(
		@ContentTypeKey INT
	)
AS 
    BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
    SET NOCOUNT OFF;

    -- Insert statements for procedure here
        SELECT  
				[ContentTypeKey],
				[ContentTypeCode],
				[ContentTypeName],
				[ContentDescription],
		
				[Sys_DateOfCreation],
				[Sys_DateOfModification],
				[Sys_CreatedByID],
				[Sys_ModifiedByID],
				[Sys_DeleteType],
				[Sys_IsDeleted],
				[Sys_OrganizationID],
				[Sys_InitialPrimaryKeys],
				[Sys_WorkstationName]
        FROM    [ContentTypeMaster]
        WHERE   
		( 
				[ContentTypeKey] = @ContentTypeKey
        );
    END
GO

